package org.example.promptword.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.promptword.entity.PromptTemplateSquare;

import java.util.List;

@Mapper
public interface PromptTemplateSquareMapper extends BaseMapper<PromptTemplateSquare> {
    // 新增的方法用于处理带有标签过滤的查询
    List<PromptTemplateSquare> selectPageWithTagFilter(Page<PromptTemplateSquare> page, @Param("content") String content, @Param("tags") List<Integer> tags);
}
